import request from '@/utils/request.js'

const orderApi = {
    selectByPage(orderInfoQuery) {
        return request.get('/order/orderInfo/selectByPage', {params: orderInfoQuery})
    },
    shipment(id) {
        return request.put(`/order/orderInfo/shipment/${id}`)
    },
    cancel(id) {
        return request.put(`/order/orderInfo/adminCancel/${id}`)
    },
    selectItem(id) {
        return request.get(`/order/orderItem/selectByOrderNo/${id}`)
    }
}

export default orderApi